import org.hibernate.Session;

import com.telemetria.HibernateUtil;


public class TesteDeConexao {
	
	public static void main(String[] args){
		Session sessao = null;
		
		try{
			new HibernateUtil();
			sessao = HibernateUtil.getSessionFactory().openSession();
			System.out.println("conectou");
		}finally{
			sessao.close();
		}
	}

}
